<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<!--[if lt IE 9]>
<script type="text/javascript" src="/public/admin/js/html5.js"></script>
<script type="text/javascript" src="/public/admin/js/respond.min.js"></script>
<script type="text/javascript" src="/public/admin/js/PIE_IE678.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="/public/admin/css/H-ui.css"/>
<link type="text/css" rel="stylesheet" href="/public/admin/css/H-ui.admin.css"/>
<link type="text/css" rel="stylesheet" href="/public/admin/font/font-awesome.min.css"/>
<!--[if IE 7]>
<link href="/public/admin/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css" />
<![endif]-->
<title>用户管理</title>
</head>
<body>
<nav class="Hui-breadcrumb"><i class="icon-home"></i> 首页 <span class="c-gray en">&gt;</span> 用户中心 <span class="c-gray en">&gt;</span> 用户管理 <a class="btn btn-success radius r mr-20" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="icon-refresh"></i></a></nav>
<div class="pd-20">
  <div class="text-c">
    <form action="/" method="get">
         <input type="hidden" value="admin/user" name="G"/>
        <input type="text" name='t' class="input-text" style="width:250px" placeholder="输入会员名称、ID" value='<?php echo $_GET['t'];?>'>&nbsp;&nbsp;<button type="submit" class="btn btn-success" id=""><i class="icon-search"></i> 搜用户</button>
    </form>
  </div>
<br/>
  <table class="table table-border table-bordered table-hover table-bg table-sort">
    <thead>
      <tr class="text-c">
        <th width="25"><input type="checkbox" name="" value=""></th>
        <th width="80">ID</th>
        <th width="100">昵称</th>
        <th width="40">头像</th>
        <th width="90">oid</th>
        <th width="150">余额</th>
        <th width="">注册时间</th>
        <th width="200">操作</th>
      </tr>
    </thead>
    <tbody>
    <?php foreach ($arr as $v):?>
      <tr class="text-c">
        <td width="25"><input type="checkbox" name="" value=""></td >
        <td  width="80"><?php echo $v['ID'];?></td>
        <td  width="100"><?php echo $v['nickname'];?></td>
        <td  width="40"><img src="<?php echo $v['headpic'];?>" style="width: 50px;height: 50px;"/></td>
        <td  width="90"><?php echo $v['openid'];?></td>
        <td  width="150"><?php echo $v['money'];?></td>
        <td  width=""><?php echo date('Y-m-d H:i:s',$v['gtime']);?></td>
        <td  width="200">
        <a onclick="return confirm('确定删除此账号么？删除此账号将不可恢复。');" class="btn btn-danger"  href="/?G=admin/udel&uid=<?php echo $v['ID'];?>">删除</a>
        <a onclick="Lalert(500,400,'用户上分','/?G=admin/sxf&i=<?php echo $v['ID'];?>&t=1');"" class="btn btn-success" >上分</a>
        <a onclick="Lalert(500,400,'用户下分','/?G=admin/sxf&i=<?php echo $v['ID'];?>&t=2');"" class="btn btn-success" >下分</a>
        <a onclick="Lalert(900,400,'资金记录','/?G=admin/dlkhxz&i=<?php echo $v['ID'];?>');"" class="btn btn-success" >资金记录</a>

       
        
        </td>
      </tr>
     <?php endforeach;?>
    </tbody>
  </table>
  <div id="pageNav" class="pageNav"></div>
</div>
<script type="text/javascript" src="/public/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="/public/admin/layer/layer.min.js"></script>
<script type="text/javascript" src="/public/admin/js/H-ui.js"></script>
<script type="text/javascript" src="/public/admin/js/H-ui.admin.js"></script>
<script type="text/javascript" src="/public/admin/js/self.js"></script>
<style>
.pageNav{float:none;clear:both;font-size:0px;font-family:Arial,Helvetica,sans-serif;padding:18px 0px;text-align:center}
.pageNav span,.pageNav a,.pageNav b{font-size:14px;overflow:hidden;padding:7px 12px}
.pageNav a{cursor:pointer;background-color: #dfdfdf;color: #000;border:1px solid #ccc;}
.pageNav b{color:#000}
.pageNav .mor{padding:3px;font-weight:bold}
.chosk{background-color:#ff2b4f !important; color:white !important;}
</style>

<script type="text/javascript">
function setnav(p,pa,url){
			var str='';
			var navup=p-1;
			var navdp=p+1;
			if(p!=1){str+='<a href='+url+'&p='+navup +'><</a>';}
			else{
				str+='<a><</a>';
			}
			//计算最后一页条码
			var i=Math.floor((p-1)/10)*10+1;
			var lastpage=(i-1)+10<pa?(i-1)+10:pa;
			for (i;i<=lastpage;i++){
				if(i==p){str+='<a href='+url+'&p='+i+' class=chosk >'+i+'</a>';}else{str+='<a href='+url+'&p='+i+' >'+i+'</a>';}
			}
			if((i-1)!=pa){
				str+='<a>...</a>';
				str+='<a href='+url+'&p='+pa+' >'+pa+'</a>';
			}
			
			if(p+1<=pa){str+='<a href='+url+'&p='+navdp+' >></a>';}else{
				str+='<a>></a>';
			}
			$('#pageNav').html(str);
}
</script>
<!--nav 当前页 总页数 url  -->
<script> setnav(<?php echo $_GET['p']?$_GET['p']:1;?>,<?php echo ceil($count/10);?>,
'<?php 
$url= '/?G=admin/user';
if($_GET['t']){$url.="&t={$_GET['t']}";}
echo $url;
?>');</script>
</body>
</html>